Skip to content

Failed

Scenario: Start broker for all scenarios.Scenario: Start broker for all scenarios (from org.eclipse.kapua.service.device.integration.RunBrokerACLI9nTest)

Failing for the past 3 builds (Since Unstable #1 )
Took 0.67 sec.

Error Message

Could not initialize class org.eclipse.kapua.commons.event.ServiceEventBusManager

Stacktrace

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.kapua.commons.event.ServiceEventBusManager

Standard Output

Failure in before hook:EmbeddedEventBroker.start()
Message: java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.kapua.commons.event.ServiceEventBusManager
	at org.eclipse.kapua.qa.steps.EmbeddedEventBroker.start(EmbeddedEventBroker.java:89)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at cucumber.runtime.Utils$1.call(Utils.java:37)
	at cucumber.runtime.Timeout.timeout(Timeout.java:13)
	at cucumber.runtime.Utils.invoke(Utils.java:31)
	at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
	at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:223)
	at cucumber.runtime.Runtime.runHooks(Runtime.java:211)
	at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:201)
	at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
	at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:91)
	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:93)
	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:37)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at cucumber.api.junit.Cucumber.run(Cucumber.java:98)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:386)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:323)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:143)

      java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.kapua.commons.event.ServiceEventBusManager
      	at org.eclipse.kapua.qa.steps.EmbeddedEventBroker.start(EmbeddedEventBroker.java:89)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at cucumber.runtime.Utils$1.call(Utils.java:37)
      	at cucumber.runtime.Timeout.timeout(Timeout.java:13)
      	at cucumber.runtime.Utils.invoke(Utils.java:31)
      	at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
      	at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:223)
      	at cucumber.runtime.Runtime.runHooks(Runtime.java:211)
      	at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:201)
      	at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
      	at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:91)
      	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
      	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
      	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:93)
      	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:37)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at cucumber.api.junit.Cucumber.run(Cucumber.java:98)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:386)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:323)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:143)

10:46:37.009 [main] INFO  o.e.k.s.user.steps.UserServiceSteps - Logging out in cleanup
10:46:37.010 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - Running database script from resources...
10:46:37.011 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running resources script: database/all_delete.sql
10:46:37.016 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - ...database scripts from resources done!
10:46:37.017 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - Running database script from resources...
10:46:37.018 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running resources script: database/all_delete.sql
10:46:37.021 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - ...database scripts from resources done!
10:46:37.023 [main] INFO  o.e.kapua.qa.steps.EmbeddedBroker - Starting new instance
10:46:37.024 [main] INFO  o.a.a.xbean.XBeanBrokerFactory$1 - Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@21fea8fa: startup date [Thu Oct 04 10:46:37 EDT 2018]; root of context hierarchy
10:46:37.027 [main] INFO  o.a.x.s.c.v.XBeanXmlBeanDefinitionReader - Loading XML bean definitions from class path resource [activemq.xml]
10:46:37.131 [main] INFO  o.a.x.s.c.v.XBeanXmlBeanDefinitionReader - Loading XML bean definitions from class path resource [camel.xml]
10:46:37.321 [main] INFO  o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from URL [file:src/test/resources/credentials.properties]
10:46:37.350 [main] WARN  o.a.activemq.broker.BrokerService - Memory Usage for the Broker (6144mb) is more than the maximum available for the JVM: 993 mb - resetting to 70% of maximum available: 695 mb
10:46:37.351 [main] INFO  o.a.activemq.broker.BrokerService - Using Persistence Adapter: KahaDBPersistenceAdapter[/jobs/genie.kapua/release-1.0.x-build/workspace/qa/target/activemq/vxf_6tDtRlidVFs3RVDg2Q/kahaDB]
10:46:37.455 [main] INFO  o.a.a.store.kahadb.MessageDatabase - KahaDB is version 6
10:46:37.465 [main] INFO  o.a.a.store.kahadb.MessageDatabase - Recovering from the journal @1:503
10:46:37.465 [main] INFO  o.a.a.store.kahadb.MessageDatabase - Recovery replayed 5 operations from the journal in 0.007 seconds.
10:46:37.469 [main] INFO  o.a.a.s.kahadb.plist.PListStoreImpl - PListStore:[/jobs/genie.kapua/release-1.0.x-build/workspace/qa/./data/message-broker/tmp_storage] started
10:46:37.470 [main] INFO  o.e.k.b.c.KapuaBrokerSecurityPlugin - Installing Kapua broker plugin.
10:46:37.475 [main] INFO  o.a.s.c.IniSecurityManagerFactory - Realms have been explicitly set on the SecurityManager instance - auto-setting of realms will not occur.
10:46:37.475 [main] INFO  o.a.a.p.DiscardingDLQBrokerPlugin - Installing Discarding Dead Letter Queue broker plugin[dropAll=true; dropTemporaryTopics=true; dropTemporaryQueues=true; dropOnly=null; reportInterval=1000]
10:46:37.478 [main] INFO  o.a.activemq.broker.BrokerService - Apache ActiveMQ 5.14.5 (message-broker, ID:hipp9-58005-1538664370342-0:2) is starting
10:46:37.478 [main] INFO  o.e.k.b.c.p.KapuaSecurityBrokerFilter - >>> Security broker filter: calling start...
10:46:37.478 [main] INFO  o.e.k.b.c.p.KapuaSecurityBrokerFilter - >>> Security broker filter: calling start... Initialize jaxb context
10:46:37.478 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing instance...
10:46:37.478 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing instance of. Instantiate default instance class org.eclipse.kapua.broker.core.BrokerJAXBContextProvider ...
10:46:37.478 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing broker ip resolver... DONE
10:46:37.478 [main] INFO  o.e.k.b.c.p.KapuaSecurityBrokerFilter - >>> Security broker filter: calling start... Initialize authenticator
10:46:37.478 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing instance...
10:46:37.478 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing instance of. Instantiate default instance class org.eclipse.kapua.broker.core.plugin.authentication.DefaultAuthenticator ...
10:46:37.479 [main] INFO  o.e.k.b.c.p.a.DefaultAuthenticator - >>> Security broker filter: calling start... Initialize system message creator
10:46:37.479 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing instance...
10:46:37.479 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing instance of. Instantiate default instance class org.eclipse.kapua.broker.core.message.system.DefaultSystemMessageCreator ...
10:46:37.479 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing broker ip resolver... DONE
10:46:37.479 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing broker ip resolver... DONE
10:46:37.479 [main] INFO  o.e.k.b.c.p.KapuaSecurityBrokerFilter - >>> Security broker filter: calling start... Initialize broker ip resolver
10:46:37.479 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing instance...
10:46:37.479 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing instance of. Instantiate default instance class org.eclipse.kapua.broker.core.plugin.DefaultBrokerIpResolver ...
10:46:37.480 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing broker ip resolver... DONE
10:46:37.480 [main] INFO  o.e.k.b.c.p.KapuaSecurityBrokerFilter - >>> Security broker filter: calling start... Initialize broker id resolver
10:46:37.480 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing instance...
10:46:37.480 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing instance of. Instantiate default instance class org.eclipse.kapua.broker.core.plugin.DefaultBrokerIdResolver ...
10:46:37.480 [main] INFO  o.e.kapua.commons.util.ClassUtil - Initializing broker ip resolver... DONE
10:46:37.480 [main] INFO  o.e.k.b.c.p.KapuaSecurityBrokerFilter - >>> Security broker filter: calling start... Initialize stealing link manager...
10:46:37.483 [main] INFO  o.a.a.t.TransportServerThreadSupport - Listening for connections at: mqtt+nio://hipp9:1883?transport.maximumConnections=1000&transport.socketBufferSize=131072&transport.ioBufferSize=16384&transport.activeMQSubscriptionPrefetch=32766&transport.publishDollarTopics=true&transport.subscriptionStrategy=mqtt-virtual-topic-subscriptions
10:46:37.484 [main] INFO  o.a.a.broker.TransportConnector - Connector mqtt started
10:46:37.484 [main] INFO  o.a.a.t.TransportServerThreadSupport - Listening for connections at: mqtt+nio+ssl://hipp9:8883?transport.maximumConnections=1000&transport.socketBufferSize=131072&transport.ioBufferSize=16384&transport.activeMQSubscriptionPrefetch=32766&transport.publishDollarTopics=true&transport.subscriptionStrategy=mqtt-virtual-topic-subscriptions
10:46:37.484 [main] INFO  o.a.a.broker.TransportConnector - Connector mqtts started
10:46:37.485 [main] INFO  o.a.a.t.TransportServerThreadSupport - Listening for connections at: tcp://hipp9:61616?transport.maximumConnections=1000&transport.socketBufferSize=131072&ioBufferSize=16384&transport.activeMQSubscriptionPrefetch=32766&transport.publishDollarTopics=true&transport.subscriptionStrategy=mqtt-virtual-topic-subscriptions
10:46:37.485 [main] INFO  o.a.a.broker.TransportConnector - Connector tcp started
10:46:37.485 [main] INFO  o.a.activemq.broker.BrokerService - Apache ActiveMQ 5.14.5 (message-broker, ID:hipp9-58005-1538664370342-0:2) started
10:46:37.485 [main] INFO  o.a.activemq.broker.BrokerService - For help or more information please see: http://activemq.apache.org
10:46:37.485 [pool-3-thread-1] INFO  o.e.k.b.c.p.KapuaSecurityBrokerFilter - >>> Security broker filter: calling start... Register stealing link manager...
10:46:37.486 [pool-3-thread-1] INFO  o.a.a.broker.TransportConnector - Connector vm://message-broker started
10:46:37.497 [pool-3-thread-1] INFO  o.e.k.b.c.p.KapuaSecurityBrokerFilter - >>> Security broker filter: calling start... Register stealing link manager... DONE
10:46:37.499 [main] INFO  o.e.k.b.c.r.CamelKapuaDefaultRouter - Default Camel routing... Loading configuration from file /jobs/genie.kapua/release-1.0.x-build/workspace/qa/target/test-classes/camel-routes.xml
10:46:37.546 [main] INFO  o.e.k.b.c.r.CamelKapuaDefaultRouter - Default Camel routing... Loading configuration from file camel-routes.xml Found 2 parent endpoints in the route
10:46:37.547 [main] INFO  o.e.k.b.c.r.CamelKapuaDefaultRouter - 
Regex: ^\$EDC\..*
	Regex: ^\$EDC\.(.*\.){2}MQTT\.BIRTH
		End point: bean:kapuaLifeCycleConverter?method=convertToBirth,bean:deviceMessageListener?method=processBirthMessage
	Regex: ^\$EDC\.(.*\.){2}MQTT\.DC
		End point: bean:kapuaLifeCycleConverter?method=convertToDisconnect,bean:deviceMessageListener?method=processDisconnectMessage
	Regex: ^\$EDC\.(.*\.){2}MQTT\.APPS
		End point: bean:kapuaLifeCycleConverter?method=convertToApps,bean:deviceMessageListener?method=processAppsMessage
	Regex: ^\$EDC\.(.*\.){2}MQTT\.LWT
		End point: bean:kapuaLifeCycleConverter?method=convertToMissing,bean:deviceMessageListener?method=processMissingMessage
	Regex: ^\$EDC\.(.*\.){2}MQTT\.NOTIFY
		End point: bean:kapuaLifeCycleConverter?method=convertToNotify,bean:deviceMessageListener?method=processNotifyMessage
	End chain
Regex: .*
	End point: bean:kapuaDataConverter?method=convertToData,bean:dataStorageMessageProcessor?method=processMessage
10:46:37.547 [main] INFO  o.e.k.b.c.r.CamelKapuaDefaultRouter - Default Camel routing... Loading configuration 'camel-routes.xml' from file '/jobs/genie.kapua/release-1.0.x-build/workspace/qa/target/test-classes/camel-routes.xml' DONE
10:46:37.554 [main] INFO  o.a.c.i.c.DefaultTypeConverter - Loaded 186 type converters
10:46:37.558 [main] INFO  o.a.camel.spring.SpringCamelContext - Apache Camel 2.16.3 (CamelContext: camelContext) is starting
10:46:37.558 [main] INFO  o.a.c.m.ManagedManagementStrategy - JMX is enabled
10:46:37.559 [main] WARN  o.a.c.m.DefaultManagementLifecycleStrategy - This CamelContext(camelContext) will be registered using the name: camelContext-1 due to clash with an existing name already registered in MBeanServer.
10:46:37.570 [main] INFO  o.a.c.i.DefaultRuntimeEndpointRegistry - Runtime endpoint registry is in extended mode gathering usage statistics of all incoming and outgoing endpoints (cache limit: 1000)
10:46:37.643 [main] INFO  o.a.camel.spring.SpringCamelContext - AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance.
10:46:37.643 [main] INFO  o.a.camel.spring.SpringCamelContext - StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
10:46:37.682 [main] INFO  o.s.j.c.CachingConnectionFactory - Established shared JMS Connection: ActiveMQConnection {id=ID:hipp9-58005-1538664370342-7:1,clientId=null,started=false}
10:46:37.690 [main] INFO  o.a.camel.spring.SpringCamelContext - Route: mainKapuaRoute started and consuming from: Endpoint[activemq://queue:Consumer.eurotech:mainRoutelisteners:EXACTLY_ONCE.VirtualTopic.%3E?acknowledgementModeName=CLIENT_ACKNOWLEDGE&asyncConsumer=false&concurrentConsumers=20&maxConcurrentConsumers=50&transacted=false]
10:46:37.692 [main] INFO  o.a.camel.spring.SpringCamelContext - Route: dataMessageCommunicationErrorRoute started and consuming from: Endpoint[activemq://queue:storeCommunicationException?acknowledgementModeName=CLIENT_ACKNOWLEDGE&asyncConsumer=false&concurrentConsumers=2&maxConcurrentConsumers=5&transacted=false]
10:46:37.693 [main] INFO  o.a.camel.spring.SpringCamelContext - Route: dataMessageConfigurationErrorRoute started and consuming from: Endpoint[activemq://queue:storeConfigurationException?acknowledgementModeName=CLIENT_ACKNOWLEDGE&asyncConsumer=false&concurrentConsumers=2&maxConcurrentConsumers=5&transacted=false]
10:46:37.696 [main] INFO  o.a.camel.spring.SpringCamelContext - Route: dataMessageGenericErrorRoute started and consuming from: Endpoint[activemq://queue:storeGenericException?acknowledgementModeName=CLIENT_ACKNOWLEDGE&asyncConsumer=false&concurrentConsumers=2&maxConcurrentConsumers=5&transacted=false]
10:46:37.697 [main] INFO  o.a.camel.spring.SpringCamelContext - Route: notProcessableMessage started and consuming from: Endpoint[activemq://queue:notProcessableMessage?acknowledgementModeName=CLIENT_ACKNOWLEDGE&asyncConsumer=false&concurrentConsumers=2&maxConcurrentConsumers=5&transacted=false]
10:46:37.697 [main] INFO  o.a.camel.spring.SpringCamelContext - Total 5 routes, of which 5 is started.
10:46:37.697 [main] INFO  o.a.camel.spring.SpringCamelContext - Apache Camel 2.16.3 (CamelContext: camelContext) started in 0.139 seconds
10:46:37.698 [main] INFO  o.e.kapua.qa.steps.EmbeddedBroker - Setting ActiveMQ data directory to target/activemq/vxf_6tDtRlidVFs3RVDg2Q/data/message-broker